<!--
 * @Description: 
 * @Version: V1.0.0
 * @Author: 周艳凯 484894717@qq.com
 * @Date: 2024-09-27 16:48:55
 * @LastEditors: 周艳凯 484894717@qq.com
 * @LastEditTime: 2024-10-12 14:58:07
 * @FilePath: week.vue
 * Copyright 2024 Marvin, All Rights Reserved. 
 * 2024-09-27 16:48:55
-->
<template>
  <div class="arco-picker-week-list">
    <div
      v-for="(item, index) in weekList"
      :key="index"
      class="arco-picker-week-list-item"
    >
      {{ labelList[index] }}
    </div>
  </div>
</template>

<script lang="ts">
import { computed, defineComponent } from "vue";
const icon = defineComponent({
  name: "CalHeader",
  options: {
    // 虚拟化节点
    virtualHost: true,
  },
  props: {
    weekList: {
      type: Array,
      required: true,
    },
  },
  setup() {
    const labelList = computed(() => {
      return ["周日", "周一", "周二", "周三", "周四", "周五", "周六"];
    });
    return {
      labelList,
    };
  },
});
export default icon;
</script>

<style lang="scss" scoped>
.arco-picker-week-list {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  padding: 14px 16px 0 16px;
}
.arco-picker-week-list-item {
  flex: 1;
  height: 32px;
  padding: 0;
  color: #7d7d7f;
  font-weight: 400;
  line-height: 32px;
  text-align: center;
}
</style>
